const http = uni.$u.http

// 方案
export const getContentList = (params = {}) => http.get('admin/content.Content/list', params, {})

// 上下架
export const getDisable = (params = {}) => http.post('admin/content.Content/disable', params, {
	custom: {
		loading: false
	}
})

// 置顶   取消置顶
export const getIstop = (params = {}) => http.post('admin/content.Content/istop', params, {
	custom: {
		loading: false
	}
})

// 删除
export const getDele = (params = {}) => http.post('admin/content.Content/dele', params, {
	custom: {
		loading: false
	}
})

// 销售方案详情
export const getDetailsinfo = (params = {}) => http.get('admin/content.Content/info', params, {
	custom: {
		loadingTitle: '加载中...'
	}
})

// 用户方案详情
export const getWzDetailsinfo = (params = {}) => http.get('api/content.Content/info', params, {
	custom: {
		loadingTitle: '加载中...'
	}
})

// 方案设置折扣
export const editdiscount = param => http.post('admin/content.Content/editdiscount', param, {
	custom: {
		loadingTitle: '设置中...'
	}
})

// 获取二维码
export const getCode = param => http.post('admin/content.Content/getQrcodeTicket', param, {
	custom: {
		loading: false
	}
})

// 获取二维码
export const getApiCode = param => http.post('api/content.Content/getQrcodeTicket', param, {
	custom: {
		loading: false
	}
})

// 方案详情购买
export const buyInfo = param => http.post('api/member.Member/buy', param, {
	custom: {
		loading: false
	}
})

// 支付轮询
export const checkPayStatus = param => http.post('api/member.Member/checkPayStatus', param, {
	custom: {
		loading: false
	}
})
// 排行榜
export const myRanking = param => http.post('admin/system.UserCenter/myRanking', param, {})
// 销售userinfo
export const adminUserInfo = param => http.post('admin/system.UserCenter/info', param, {})

// 用户userinfo
export const memberUserInfo = param => http.post('api/member.Member/info', param, {})

// 再次推送
export const addTask = param => http.post('admin/content.Content/addTask', param, {
	custom: {
		loadingTitle: '推送中...'
	}
})

// 销售方案列表
export const getUserContentList = (params = {}) => http.get('api/content.Content/list', { params }, {
	custom: {
		loadingTitle: '拉取中...'
	}
})

// 方案销量明细
export const getOrderList = (params = {}) => http.get('admin/order.Order/list', { params }, {})

// 方案浏览明细
export const getContentLog = (params = {}) => http.get('admin/content.Content/log', { params }, {})

// 修改秒杀虚拟库存
export const setVirtualInventory = param => http.post('admin/content.Content/setVirtualInventory', param, {})

// 回收站还原
export const restoreArticle = param => http.post('admin/content.Content/restoreArticle', param, {})

// 图表数据
export const kuiperMarket = param => http.post('admin/kuiper.Market', param, {})

// 粉丝关系设置
export const setFans = param => http.post('admin/member.Fans/setFans', param, {})

// 关注取关
export const setFocus = param => http.post('api/member.Member/setFocus', param, {})
// 充值列表
export const rechargeConfig = param => http.post('/api/member.Recharge/config', param, {})
// 充值生成订单
export const rechargePay = param => http.post('/api/member.Recharge/pay', param, {})
// 充值列表
export const rechargeList = param => http.post('/api/member.Recharge/list', param, {})
// 余额明细
export const balanceLog = param => http.post('/api/member.Recharge/log', param, {})